package com.bookstore.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPO {

    public UserPO ( String userName,String password,String  regTime) {
        this.userName = userName;
        this.password = password;
        this.regTime = regTime;
    }


    @TableField("user_name")
    private String  userName;

    @TableField("password")
    private String password;

    @TableField("shipping_address")
    private String shippingAddress;

    @TableField("money")
    private Float money = null;

    @TableField("role")
    private String role;

    @TableField("head_portrait")
    private String headPortrait;

    @TableField("reg_time")
    private String  regTime;

    @TableField("sex")
    private String sex;

    @TableField("phone_number")
    private String phoneNumber;

    @TableField("real_name")
    private String realName;

    @TableField("status")
    private int status;

}
